package net.blf2.config;

public class SimpleCacheConfig {

    //是否开启自动回收
    private boolean isAutoCollect = false;
    //自动回收间隔时间 只有isAutoCollect有值才会生效 单位：秒
    private long autoCollectInterval = 10000L;
    //默认存活时间 单位：秒
    private long defaultTimeToLive = 10000L;

    public boolean isAutoCollect() {
        return isAutoCollect;
    }

    public void setAutoCollect(boolean autoCollect) {
        isAutoCollect = autoCollect;
    }

    public long getAutoCollectInterval() {
        return autoCollectInterval;
    }

    public void setAutoCollectInterval(long autoCollectInterval) {
        this.autoCollectInterval = autoCollectInterval;
    }

    public long getDefaultTimeToLive() {
        return defaultTimeToLive;
    }

    public void setDefaultTimeToLive(long defaultTimeToLive) {
        this.defaultTimeToLive = defaultTimeToLive;
    }
}
